<?php

/*
 *	Write to debug
 *
 *	@param	string	Data to write [optional]
 *	@param	string	ID of debuger [optional]
 */
function debug($line = null, $id = null)
{
	\Nano\Debug::getInstance($id)->write($line);
}

/*
 *	Get debug data
 *	
 *	@param	string	ID of debuger [optional]
 *	@return	string	Debug result
 */
function debug_data($id = null)
{
	return \Nano\Debug::getInstance($id);
}

/*
 *	Clear debug
 *
 *	@param	string	ID of debuger [optional]
 *	@return	boolean
 */
function debug_clear($id = null)
{
	return \Nano\Debug::destroyInstance($id);
}